const selectUser = require('./selectUser/index');
const addUser = require('./addUser/index');
const getUserByOpenid = require('./getUserByOpenid/index')
// 云函数入口函数
exports.main = async (event, context) => {
  switch (event.type) {
    case 'selectUser':
      return await selectUser.main(event, context);
    case 'addUser':
      return await addUser.main(event, context);
    case 'getUserByOpenid':
      return await getUserByOpenid.main(event, context);
  }
}